//
//  ViewController.m
//  HWTitleTextFieldDemo
//
//  Created by LiTengFei on 15/3/2.
//  Copyright (c) 2015年 LiTengFei. All rights reserved.
//

#import "ViewController.h"
#import "HWTitleTextField.h"
@interface ViewController () <UITextFieldDelegate>

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    HWTitleTextField * filed = [[HWTitleTextField alloc]initWithFrame:CGRectMake(0, 64, CGRectGetWidth([[UIScreen mainScreen]bounds]), 50)];

    filed.titleWidth = 100;
    filed.titleLabel.text = @"124";

    filed.textField.placeholder = @"name";
    filed.textField.text = @"11";
    filed.textField.delegate = self;

    filed.topLineLayer.backgroundColor = [UIColor redColor].CGColor;
    filed.bottomLineLayer.backgroundColor = [UIColor blueColor].CGColor;

    [self.view addSubview:filed];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
